package com.sunducation.wts.penbox;

import com.alibaba.android.arouter.launcher.ARouter;
import com.wetao.lib_common.base.BaseApplication;
import com.wetao.lib_common.utils.ConstantUtils;


public class MyApplication extends BaseApplication
{

    @Override
    public void onCreate()
    {
        super.onCreate();
        initARouter();
    }

    private void initARouter() {
        if (ConstantUtils.isAppDebug()) {
            //开启InstantRun之后，一定要在ARouter.init之前调用openDebug
            ARouter.openDebug();
            ARouter.openLog();
        }
        ARouter.init(this);
    }

}
